package net.zubara.esni.core.util;

public class FacebookUtil {

	public static String getPermissionParam(EPermission[] permissions) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < permissions.length - 1; i++) {
			EPermission p = permissions[i];
			sb.append(p.value());
			sb.append(",");
		}
		sb.append(permissions[permissions.length - 1].value());
		return sb.toString();
	}

}
